package com.jrzh.db.migration.sys;

import com.jrzh.framework.migration.BaseMigration;
import com.jrzh.framework.migration.MigrationHelper;

public class Migration_21 extends BaseMigration{
	
	private static final String TABLE_NAME = "sys_i18ns";

	@Override
	public void down() {
		MigrationHelper.dropTable(TABLE_NAME);
	}

	@Override
	public void up() {
		log.info("##########执行Sys模块 Migration_21##########Begin");
		table(TABLE_NAME, "i18n国际化表", true, 
				pk(),
				jrVarchar("_code", "i18n", 64),
				jrVarchar("_model", "", 64),
				jrText("_zh", "中文"),
				jrText("_en", "英文"),
				jrText("_tw", "台湾"),
				jrText("_hk", "香港")
		);
		log.info("##########执行Sys模块 Migration_21##########End");
	}

}
